package com.itqf.mapper;

import com.itqf.bean.DtsGoodsProduct;
import com.itqf.bean.DtsGoodsProductExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DtsGoodsProductMapper {
    long countByExample(DtsGoodsProductExample example);

    int deleteByExample(DtsGoodsProductExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(DtsGoodsProduct record);

    int insertSelective(DtsGoodsProduct record);

    List<DtsGoodsProduct> selectByExample(DtsGoodsProductExample example);

    DtsGoodsProduct selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") DtsGoodsProduct record, @Param("example") DtsGoodsProductExample example);

    int updateByExample(@Param("record") DtsGoodsProduct record, @Param("example") DtsGoodsProductExample example);

    int updateByPrimaryKeySelective(DtsGoodsProduct record);

    int updateByPrimaryKey(DtsGoodsProduct record);

    /**
     * 查询货品的数量
     * @return
     */
    Long selectProductTotal();

    /**
     * 查询品牌货品的数量
     * @param brandIds
     * @return
     */
    Long selectProductTotalByBrandIds(List<Integer> brandIds);
}